package com.whccb.apps.office.document.event.receive;

import com.actionsoft.bpms.bpmn.engine.core.delegate.ProcessExecutionContext;
import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListener;
import com.actionsoft.bpms.bpmn.engine.listener.ExecuteListenerInterface;

public class OfficePbTaskBeforeFormLoadEvent extends ExecuteListener
        implements ExecuteListenerInterface {

    public String getDescription() {
        return "收文流程，文书处理节点，设置“会签经理”、“行领导”字段必填";
    }

    public String getProvider() {
        return "ActionSoft";
    }

    public String getVersion() {
        return "AWS 6.0";
    }

    public void execute(ProcessExecutionContext pec) throws Exception {
        // pec.addFormNotNullPolicy("BO_WHBK_OD_RECEIVE", "LEADERMAN");//
        // 针对字段设置一个必填策略
        // pec.addFormNotNullPolicy("BO_WHBK_OD_RECEIVE", "DOUSERNAME");//
        // 针对字段设置一个必填策略
    }

}
